<?php include get_partial('_header');?>
<?php include get_partial('_left');?>

<div id="right">
  <h1 class="porduct_img"><?php echo $product['name'];?></h1>
  <div class="content">
    <div class="prodct_info">
      <table class="porduct_description porduct_info_table">
        <tr>
          <th>名称:</th>
          <td><?php echo $product['name'];?></td>
        </tr>
        <tr>
          <th>描述:</th>
          <td><?php echo $product['description'];?></td>
        </tr>
      </table>
      <?php $product_images = get_product_images($product['id']);?>
      <div class="prodct_info_img">
        <?php if ($product_images) {?>
          <?php foreach ($product_images as $product_image) {?>
        <img src="content/upload/product/<?php echo $product_image['image'];?>" alt="<?php echo $product['name'];?>" />
          <?php }?>
        <?php } else {?>
        <img src="content/theme/<?php echo THEME;?>/images/product_no_image.gif" alt="暂时没有图片" />
        <?php }?>
      </div>
    </div>
  </div>
</div>
<?php include get_partial('_footer');?>
